package Day2025_02_17;

public class LeetCode283 {
    public void moveZeroes(int[] nums) {
        int n = nums.length;
        int dest = 0, cur = -1;
        while (dest < n) {
            if (nums[dest] != 0) {
                int tmp = nums[dest];
                nums[dest] = nums[++cur];
                nums[cur] = tmp;
            }



            dest++;
        }
    }
}
